package controllers

type ErrorController struct {
	BaseController
}

func NewErrorController() *ErrorController {
	ctrl := &ErrorController{}

	return ctrl
}

func (ctrl *ErrorController) Prepare() {
	ctrl.TplPrefix = "error/"
	ctrl.TplExt = ".html"
}
func (ctrl *ErrorController) Error401() {
	ctrl.TplName = "error401.html"
	return
}
func (ctrl *ErrorController) Error400() {
	ctrl.TplName = "error400.html"
	return
}
func (ctrl *ErrorController) Error403() {
	ctrl.TplName = "error403.html"
	return
}
func (ctrl *ErrorController) Error404() {
	ctrl.TplName = "error404.html"
	return
}

func (ctrl *ErrorController) Error500() {
	ctrl.TplName = "error500.html"
	return
}
func (ctrl *ErrorController) Error503() {

}
